<?php
class Project extends CI_Model {

	/*
	 * get projects
	 */
	function getProjects(){
		$query = $this->db->query('
			SELECT *
			FROM projects
			ORDER BY type, name');
		return $query->result();
	}
}